package io.sage.modules.basics.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import io.sage.modules.basics.entity.BGoodsUnit;
import io.sage.modules.basics.entity.BGoodsUnitExample;

public interface BGoodsUnitMapper {
    int countByExample(BGoodsUnitExample example);

    int deleteByExample(BGoodsUnitExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BGoodsUnit record);

    int insertSelective(BGoodsUnit record);

    List<BGoodsUnit> selectByExample(BGoodsUnitExample example);

    BGoodsUnit selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BGoodsUnit record, @Param("example") BGoodsUnitExample example);

    int updateByExample(@Param("record") BGoodsUnit record, @Param("example") BGoodsUnitExample example);

    int updateByPrimaryKeySelective(BGoodsUnit record);

    int updateByPrimaryKey(BGoodsUnit record);
    
    /**
     * 货品单位
     * @param params
     * @return
     */
    List<BGoodsUnit> selectGoodsUnitList(Map<String, Object> params);
    
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);

    List<BGoodsUnit> selectIsUse(Integer[] ids);
}